#include "cpu/exec/template-start.h"

static void deal(bool ck){
    if(ck) OPERAND_W(op_dest, 1);
    else OPERAND_W(op_dest, 0);
}
#define instr seto
static void do_execute(){
    deal(cpu.eflags.OF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setno
static void do_execute(){
    deal(!cpu.eflags.OF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setb
static void do_execute(){
    deal(cpu.eflags.CF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setnb
static void do_execute(){
    deal(!cpu.eflags.CF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr sete
static void do_execute(){
    deal(cpu.eflags.ZF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setne
static void do_execute(){
    deal(!cpu.eflags.ZF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setbe
static void do_execute(){
    deal(cpu.eflags.CF||cpu.eflags.ZF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setnbe
static void do_execute(){
    deal(!cpu.eflags.CF&&!cpu.eflags.ZF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr sets
static void do_execute(){
    deal(cpu.eflags.SF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setns
static void do_execute(){
    deal(!cpu.eflags.SF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setp
static void do_execute(){
    deal(cpu.eflags.PF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setnp
static void do_execute(){
    deal(!cpu.eflags.PF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setl
static void do_execute(){
    deal(cpu.eflags.SF!=cpu.eflags.OF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setnl
static void do_execute(){
    deal(cpu.eflags.SF==cpu.eflags.OF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setle
static void do_execute(){
    deal(cpu.eflags.SF!=cpu.eflags.OF||cpu.eflags.ZF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr
#define instr setnle
static void do_execute(){
    deal(cpu.eflags.SF==cpu.eflags.OF&&!cpu.eflags.ZF) ;
    print_asm_template1();
}
make_instr_helper(i)
make_instr_helper(rm)
#if DATA_BYTE == 1 || DATA_BYTE == 4
make_instr_helper(si)
#endif
#undef instr

#include "cpu/exec/template-end.h"